<template>
  <div class="container-title-bar">
    <div class="left">
      <!--左侧颜色栏-->
      <div class="left-bar"></div>
      <!--标题-->
      <div class="title">{{title}}</div>
    </div>
    <div class="right desc">{{desc}}</div>
  </div>
</template>

<script>
  export default {
    name: "TitleBar",
    props: {
      title: {
        type: String,
        default: ''
      },
      desc: {
        type: String,
        default: ''
      }
    }
  }
</script>

<style lang="scss" scoped>

.container-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  .left {
    display: flex;
    align-items: center;
    .left-bar {
      background-color: #E54A30;
      width: 4px;
      height: 20px;
      border-radius: 18px;
      margin-right: 12px;
    }
    .title {
      font-size: 1rem;
      font-weight: 500;
    }
  }

  .right {
    color: rgba(0,0,0, .6);
    font-size: 13px;
  }




}

</style>


